﻿<%@ Page Title="My Profile" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profiles.aspx.vb" Inherits="Final.Profiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
     <table width="920" cellspacing="30"
     style="border-style: groove">       
     <tr>
 
     <td>


     <table>
     <tr>
     <td>
     <h1 style="border-bottom-style: groove; width: 413px; ">Profile Info</h1>  
     </td>
     </tr>
     </table>

     <table>
     <tr>
     <td>
     <asp2:Accordion ID="Accordion2" runat="server" Width="420px" FramesPerSecond="30">
         <Panes>
         <asp2:AccordionPane ID="AccordionPane5" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">General Info</h2></Header>
         <Content>    
     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
               DataKeyNames="ID" DataSourceID="userProfileDataSource" Width="419px">
               <Columns>
                   <asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />
                   <asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName" />
                   <asp:BoundField DataField="ResearcherName" HeaderText="Researcher Name" SortExpression="ResearcherName" />
                   <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
               </Columns>
               <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#29A4EC" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
           </asp:GridView>
           <asp:SqlDataSource ID="userProfileDataSource" runat="server" 
               ConnectionString="<%$ ConnectionStrings:FinalConnectionString %>" 
               ProviderName="<%$ ConnectionStrings:FinalConnectionString.ProviderName %>" 
               SelectCommand="SELECT * FROM [UserProfiles] WHERE ([ResearcherName] = ?)">
               <SelectParameters>
                   <asp:QueryStringParameter Name="ResearcherName" QueryStringField="ResearcherName" 
                       Type="String" />
               </SelectParameters>
           </asp:SqlDataSource>
          
           </Content>
           </asp2:AccordionPane>


            <asp2:AccordionPane ID="AccordionPane6" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">About Yourself</h2></Header>
         <Content>
    <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="userProfilerAboutYourselfDataSource" Width="419px">
        <Columns>
            <asp:BoundField DataField="Degree" HeaderText="Degree" SortExpression="Degree" />
                        <asp:BoundField DataField="University" HeaderText="University" SortExpression="University" />
                                    <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
                                    <asp:BoundField DataField="Languages" HeaderText="Languages" SortExpression="Languages" />
                                    
                                    
        </Columns>
                       <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#29A4EC" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#29A4EC" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:SqlDataSource ID="userProfilerAboutYourselfDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:FinalConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:FinalConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [UserProfiles] WHERE ([ResearcherName] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ResearcherName" QueryStringField="ResearcherName" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
         </Content>
         </asp2:AccordionPane>

         <asp2:AccordionPane ID="AccordionPane8" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">Contact</h2></Header>
         <Content>
         <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="userProfilerOtherInfoDataSource" Width="419px">
        <Columns>
            
                                          <asp:BoundField DataField="Website" HeaderText="Website" SortExpression="Website" />
                                      <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                                         <asp:BoundField DataField="MobileNo" HeaderText="Mobile No" SortExpression="MobileNo" />
                                           <asp:BoundField DataField="TelephoneNo" HeaderText="Telephone No" SortExpression="TelephoneNo" />

        </Columns>
                       <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#29A4EC" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#29A4EC" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:SqlDataSource ID="userProfilerOtherInfoDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:FinalConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:FinalConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [UserProfiles] WHERE ([ResearcherName] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ResearcherName" QueryStringField="ResearcherName" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

         </Content>
         </asp2:AccordionPane>



         <asp2:AccordionPane ID="AccordionPane1" runat="server" >
         <Header><h2 style="border-style: double; width: 413px; background-image: url('Images/back_img_profile.jpg'); color: #FFFFFF;">Account Addresses</h2></Header>
         <Content>
         <asp:GridView ID="GridView6" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="userProfilerAccountAddressDataSource" Width="419px">
        <Columns>
                                       <asp:BoundField DataField="FacebookAccount" HeaderText="Facebook Account" SortExpression="FacebookAccount" />
                                        <asp:BoundField DataField="TwitterAccount" HeaderText="Twitter Account" SortExpression="TwitterAccount" />
                                         <asp:BoundField DataField="LinkedInAccount" HeaderText="LinkedIn Account" SortExpression="LinkedInAccount" />

        </Columns>
                       <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#29A4EC" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#29A4EC" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
    </asp:GridView>
    <asp:SqlDataSource ID="userProfilerAccountAddressDataSource" runat="server" 
        ConnectionString="<%$ ConnectionStrings:FinalConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:FinalConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [UserProfiles] WHERE ([ResearcherName] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ResearcherName" QueryStringField="ResearcherName" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>

         </Content>
         </asp2:AccordionPane>




            </Panes>
         </asp2:Accordion>
     </td>
     </tr>
     <tr>
     <td>

     <asp:Button ID="btn_userProfileEdit" runat="server" Text="Edit Profile" Height="28px" 
     Width="83px" Font-Bold="true" Font-Size = 'Small' BorderStyle="Groove" 
             PostBackUrl="~/ProfilesEdit.aspx" />
     </td>
     </tr>
     </table>
 

     </td>
     

     <td>


     <table>
     <tr>
     <td>   
     <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
             DataKeyNames="ID" DataSourceID="userProfileJustPictureDataSource" 
             CellPadding="9" ShowHeader="False">
             <Columns>
                 <asp:ImageField DataImageUrlField="Picture" DataImageUrlFormatString="{0}">
                 <ControlStyle 
                    Height="250px" Width="250px" />
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                 </asp:ImageField>
             </Columns>
             <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <HeaderStyle BackColor="#29A4EC" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <SortedAscendingCellStyle BackColor="#F4F4FD" />
        <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
        <SortedDescendingCellStyle BackColor="#D8D8F0" />
        <SortedDescendingHeaderStyle BackColor="#3E3277" />
         </asp:GridView>
         <asp:SqlDataSource ID="userProfileJustPictureDataSource" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FinalConnectionString %>" 
             ProviderName="<%$ ConnectionStrings:FinalConnectionString.ProviderName %>" 
             SelectCommand="SELECT * FROM [UserProfiles] WHERE ([ResearcherName] = ?)">
             <SelectParameters>
                 <asp:QueryStringParameter Name="ResearcherName" QueryStringField="ResearcherName" 
                     Type="String" />
             </SelectParameters>
         </asp:SqlDataSource>
     
     </td>
     </tr>
     </table>
         <br />  <asp2:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
         </asp2:ToolkitScriptManager>     
     </table>     
     </td>
     </tr>
            
</div>

</asp:Content>
